// 引入此文件需自建如下内容：
// footerButtons
import { mapGetters } from 'vuex';

export default {
  props: {
    visible: {
      type: Boolean,
      default: false,
    },
    detail: {
      type: Object,
      default: () => ({}),
    },
    planId: {
      type: [String, Number],
      default: '',
    },
    // processId: {
    //   type: [String, Number],
    //   default: '',
    // },
    currentNode: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {};
  },
  computed: {
    ...mapGetters(['spinning']),
    processId() {
      return this.detail.processId;
    },
    hasEdit() {
      return this.detail.isCurrentProcessor === false ? false : true;
    },
    filterButtons() {
      if (this.hasEdit) return this.footerButtons;
      return this.footerButtons.filter(item => !item.authKey);
    },
  },
  watch: {},
  methods: {},
};
